package com.aaa.ssm.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @FileName: ResultStatus
 * @Description: 结果状态枚举类
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ResultStatus {

    SUCCESS(200,"操作成功"),
    FAIL(500,"执行失败"),
    NOT_FOUND(404,"未找到该资源"),
    UNAUTHORIZED(401,"未授权"),
    FORBIDDEN(403,"禁止访问"),
    ARGUMENT_ERROR(400,"参数错误"),
    ;
    private Integer statusCode;
    private String statusMessage;

}
